package com.vgemv.jsutilitysdkdemo.module.Application;

import com.vgemv.jsutilitysdk.Alert.JsAlertManager;
import com.vgemv.jsutilitysdk.Application.JsBaseApplication;
import com.vgemv.jsutilitysdk.Crash.JsCrashManager;
import com.vgemv.jsutilitysdk.Crash.JsCrashManagerCallback;
import com.vgemv.jsutilitysdk.Request.JsRequestManager2.JsRequestManager2;
import com.vgemv.jsutilitysdk.geometry.JsGeometryManager;
import com.vgemv.jsutilitysdk.JsUtilitySdkManager;
import com.vgemv.jsutilitysdk.file.JsFileManager;
import com.vgemv.jsutilitysdk.log.JsLogManager;
import com.vgemv.jsutilitysdk.Orientation.JsOrientationManager;
import com.vgemv.jsutilitysdk.Request.JsRequestManager.JsRequestManager;
import com.vgemv.jsutilitysdk.SharedPreference.JsSharedPreferencesManager;

public class AppApplication extends JsBaseApplication {

    public static String WxSdkId = "wxb3bac1b92de6d8e2";
    public static String WxSdkSecret = "5bfb78c7092d4da4a3fffc2721e672ab";
    public static String APP_ID = "com.vgemv.JsBaiscUtilityDemo";



    @Override
    public void initComponents() {
        JsUtilitySdkManager.initSdk(this,getAppName());
        JsLogManager.sharedInstance().limitFileCount();
        JsCrashManager.sharedInstance().mCallback = new JsCrashManagerCallback() {
            @Override
            public void onCrashOccured(Throwable e, String info) {
                JsLogManager.logfc_f("AppApplication/initComponents","\n\n+++ Exception Occured +++\n%s\n=== Exception Occured ===\n\n",info);
            }
        };
        JsLogManager.logfc_i(null,"%s", JsUtilitySdkManager.getSdkInfo());

    }

}
